package com.orange.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 路由
 * @author Emp
 * @projectName: crm
 * @package: com.powernode.controller
 * @className: RouteController
 * @date: 2021/11/29 13:25
 * @version: 1.0
 */
@Controller
public class RouteController {

    /**
     * 跳轉到登錄界面
     * @return
     */
    @RequestMapping("login/toLogin.do")
    public String toLogin(){
        return "login";
    }

    /**
     * 跳轉到index頁面
     * @return
     */
    @RequestMapping("main/index.do")
    public String index(){
        return "index";
    }

    /**
     * 跳轉到主頁
     * @return
     */
    @RequestMapping("page/welcome.do")
    public String welcome(){
        return "welcome";
    }

    @RequestMapping("page/toUserManager.do")
    public String list(){
        return "user/list";
    }

    @RequestMapping("page/toUpdatePwd.do")
    public String updatepwd(){
        return "user/updatePwd";
    }

    @RequestMapping("page/toCustomerManager.do")
    public String toCustomerManager(){return "customer/list";}

    @RequestMapping("page/toUpdateHeadPortrait.do")
    public String toUpdateHeadPortrait(){return "user/updateHeadPortrait";}

    @RequestMapping("page/toVisitLogStat.do")
    public String toVisitLogTotal(){return "visitLogStat";}

    @RequestMapping("page/toUserSetting.do")
    public String toUserSetting(){return "user/user-setting";}

    @RequestMapping("page/toNoticeManager.do")
    public String toNoticeManager(){return "notice/list";}


}
